package com.wocai.jrt.orgadmin.asset.service.impl;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.asset.dao.AssetAllocationDetailDao;
import com.wocai.jrt.orgadmin.asset.model.AssetAllocationDetail;
import com.wocai.jrt.orgadmin.asset.model.AssetAllocationDetailBean;
import com.wocai.jrt.orgadmin.asset.model.AssetAllocationDetailFlowLog;
import com.wocai.jrt.orgadmin.asset.model.AssetAllocationDetailParams;
import com.wocai.jrt.orgadmin.asset.service.spi.AssetAllocationDetailService;
import com.wocai.jrt.orgadmin.flow.model.FlowLog;
import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 资产配置明细相关的service业务实现。
 * @author yinlei
 * @date 2016-3-17 17:47:55
 */
@Named
public class AssetAllocationDetailServiceImpl extends MyBatisServiceImpl<AssetAllocationDetail, AssetAllocationDetailBean, String> implements AssetAllocationDetailService {
	// 添加了方法后，记得改为private
	protected AssetAllocationDetailDao assetAllocationDetailDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<AssetAllocationDetail, AssetAllocationDetailBean, String> assetAllocationDetailDao) {
		this.baseDao = assetAllocationDetailDao;
		this.assetAllocationDetailDao = (AssetAllocationDetailDao) assetAllocationDetailDao;
	}

	@Override
	public List<AssetAllocationDetailParams> getAllocationDetail(
			AssetAllocationDetail aad) {
		return assetAllocationDetailDao.getAllocationDetail(aad);
	}

	@Override
	public List<AssetAllocationDetailFlowLog> queryFlowLogList(FlowLog params) {
		return assetAllocationDetailDao.queryFlowLogList(params);
	}

	@Override
	public List<AssetAllocationDetail> getAssetList(AssetAllocationDetail aad) {
		return assetAllocationDetailDao.getAssetList(aad);
	}

	@Override
	public int countByAssetList(AssetAllocationDetail aad) {
		return assetAllocationDetailDao.countByAssetList(aad);
	}
}
